<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <link rel="icon" href="/favicon.ico" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover" />
        <meta name="apple-mobile-web-app-capable" content="yes" />
        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
        <meta name="robots" content="noindex" />
        <meta name="description" content="Choose and drag metro stations from different cities and connect them with 135 degree rounded corner lines" />
        <base href="./" />
        <link rel="apple-touch-icon" href="/logo192.png" />
        <link rel="stylesheet" href="/styles/fonts.css" />
        <link rel="manifest" href="/manifest.json" />
        <title>Rail Map Painter</title>
    </head>
    <body>
        <noscript>You need to enable JavaScript to run this app.</noscript>
        <div id="root">
            <p style="position: absolute;top: 50%;left: 50%;transform: translate(-50%, -50%);margin: 0;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;">
                Initializing Rail Map Painter core...
            </p>
            <p style="position: absolute;top: 75%;left: 50%;transform: translate(-50%, -50%);margin: 0;font-size: small;font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;color: gray;">
                Seeing this page for too long? Try another mirror
                <a href="https://railmapgen.github.io/?app=rmp" target="_blank" rel="noreferrer">GitHub</a>
                <a href="https://railmapgen.gitlab.io/?app=rmp" target="_blank" rel="noreferrer">Gitlab</a>
                or the
                <a href="https://github.com/railmapgen/railmapgen.github.io/releases" target="_blank" rel="noreferrer">offline applications</a>
                .    
                </br>
                </br>
                Offline applications also available via mirror.ghproxy.com
                <a id="win">Windows</a>
                <a id="mac">MacOS</a>
                <a id="linux">Linux</a>
                if you are blocked by GFW :)
            </p>
        </div>
        <script>
            const d = new Date();const tag=`${d.getFullYear()}${String(d.getMonth()+1).padStart(2, '0')}01`;const ver=`${String(d.getFullYear()).slice(-2)}.${d.getMonth()+1}.1`;
            document.getElementById('win').href=`https://mirror.ghproxy.com/https://github.com/railmapgen/railmapgen.github.io/releases/download/tauri-${tag}/railmapgen_${ver}_x64-setup.exe`;
            document.getElementById('mac').href=`https://mirror.ghproxy.com/https://github.com/railmapgen/railmapgen.github.io/releases/download/tauri-${tag}/railmapgen_${ver}_aarch64.dmg`;
            document.getElementById('linux').href=`https://mirror.ghproxy.com/https://github.com/railmapgen/railmapgen.github.io/releases/download/tauri-${tag}/railmapgen_${ver}_amd64.deb`;
        </script>
        <script type="module" src="src/index.tsx"></script>
    </body>
</html>
